import java.util.Comparator;

public class Model
{
	
	private int num;
	private int total;
	public Model(int num,int total)
	{
		this.num = num;
		this.total = total;
	}
	public int getNum()
	{
		return num;
	}
	public void setNum(int num)
	{
		this.num = num;
	}
	public int getTotal()
	{
		return total;
	}
	public void setTotal(int total)
	{
		this.total = total;
	}
	
	static class ModelCompare implements Comparator<Model>
	{
		public int compare(Model m1, Model m2)
		{
			if(m1==null||m2==null)
				return 1;
			return m1.getTotal() <= m2.getTotal() ? 1 : -1;
		}
	}

}
